/*
 * Copyright 2008-2023 dexian.vip. All rights reserved.
 * Support: http://www.dexian.vip
 * License: http://www.dexian.vip/license
 */

package vip.dexian.admin.command;

import vip.dexian.core.base.command.BaseCommand;
import vip.dexian.core.base.validation.group.Save;
import vip.dexian.core.base.validation.group.Update;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.util.List;

/**
 * 管理员角色修改 表单数据
 *
 * @author 挺好的 2023年06月05日 08:45:00
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode (callSuper = false)
public class AdminRoleUpdateCommand extends BaseCommand {

    @Serial
    private static final long serialVersionUID = -6259477195675068667L;

    /**
     * 角色ID
     */
    @NotNull (message = "请选择角色", groups = {Save.class, Update.class})
    @Size (min = 1, message = "请至少选择{min}个角色", groups = {Save.class, Update.class})
    private List <Long> roleIds;


}
